<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/rent.css"/>
		<title>一元租机</title>
		
	</head>
	<body>
		<div id="web">
			<div class="alert">
				<div class="alert1">
					<div class="alert-font">
						领取成功
					</div>
					<button onclick="openbtn1()">确定</button>
				</div>
				<div class="alert3">
					<div class="alert-font">
						你已经领取过了
					</div>
					<button onclick="openbtn3()">确定</button>
				</div>
			</div>
			<div class="rent-img">
				<img src="img/rent/red_bgr.jpg"/>
				<div class="rent-button">
					<div class="rent-buttons" id="rent_button">
							<img src="img/rent/red_button.png"/>
							<div class="rent_title">
								1元租机，体验7天
							</div>
						<div class="rent-data">
							<p>活动时间：2018.02.01~2018.03.31，</p>
							<p>(  注：活动结束后以额定租金计费  )  </p>
						</div>  
					</div>
				</div>
				<div class="rent-quan">
					<img src="img/rent/one-han.png"/>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
			document.body.style.height=window.innerHeight+"px";
		</script>
		<script type="text/javascript">
		//动态改变根元素字体大小
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
												//字体大小 = 1个rem单位表示多少个像素，设备的宽度 / 设计宽度
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>
		<script src="js/rent.js" type="text/javascript" charset="utf-8"></script></html>
